//
//  SpaceClassify.h
//  cutter
//
//  Created by mac on 15/12/21.
//  Copyright © 2015年 e360. All rights reserved.
//

#import "SpaceCustom.h"
//
@interface SpaceClassifyTipsCell : UIButton
+(CGFloat)makeCells:(id)items view:(UIView*)view width:(CGFloat)width;
@end
//
@class SpaceClassifyCtrl;
@interface SpaceClassifyTips : UIView
@property (nonatomic, strong) NSMutableDictionary *data;
@property (nonatomic, strong) NSMutableDictionary *tips;
@property (nonatomic, copy) blockEvent onSelected;

@property (strong, nonatomic) UIScrollView *scrollView;
//
-(void)cellTouch:(SpaceClassifyTipsCell*)sender;
-(void)showFromRect:(CGRect)frame atView:(UIView*)view;
-(void)reloadTips;
@end


//
@interface SpaceClassifyCell : UITableViewCell
@property(nonatomic,strong) IBInspectable UIColor *selectedBackgroundColor;
@property(nonatomic,strong) IBInspectable UIColor *selectedColor;
@property(nonatomic,strong) IBInspectable UIColor *nomalColor;
@property (weak, nonatomic) IBOutlet UIImageView *iconView;
@property (weak, nonatomic) IBOutlet UILabel *nameView;
@end


//
@interface SpaceClassify : UITableViewController
@property (nonatomic, strong) NSMutableDictionary *tips;
@property (nonatomic, strong) NSMutableDictionary *data;
@property (nonatomic, copy) blockEvent onSelected;
@property (nonatomic, copy) blockEvent onclose;
-(void)reloadTips;
@end


